#ifndef _INPUT_WIDGET_H
#define _INPUT_WIDGET_H

#include <qwidget.h>
#include "writtencharacter.h"

class InputWidget : public QWidget
{
    Q_OBJECT
public:
    InputWidget();
    ~InputWidget();
    void clear();
    void undo();
    WrittenCharacter getCharacter();
signals:
    void matchCompleted(char *result);
    
public slots:
    
protected:
    virtual void MousePressed();
    virtual void MouseMoved();
    virtual void MouseRelase();
    
private:
    //char *_data_file;
    //int _data_fd;
    WrittenCharacter *inputCharacter;
    WrittenStroke *currentStroke;
    WrittenPoint *previousPoint;
}

#endif
